Skip to content

Add additional debug logging to onNotifyCommit#3929

Open
MarkRx wants to merge 1 commit intojenkinsci:masterfrom
MarkRx:feature/notify-commit-additional-logging
Open

Add additional debug logging to onNotifyCommit#3929
MarkRx wants to merge 1 commit intojenkinsci:masterfrom
MarkRx:feature/notify-commit-additional-logging

Conversation

@MarkRx
Copy link

@MarkRx MarkRx commented Feb 13, 2026

Adds additional FINER and FINEST logging to git onNotifyCommit to assist with debugging - #3910

Testing done

Set hudson.plugins.git logger to ALL level. Increased log size with startup parameter -Dhudson.util.RingBufferLogHandler.defaultSize=16384

Setup a Jenkins job with polling enabled and a branch specified.

  1. Matching repository and branch
Feb 13, 2026 3:13:26 PM FINE hudson.plugins.git.GitStatus
Received notification from 1.2.3.4 ⇒ https://jenkins.company.com/git/notifyCommit for uri = ssh://git@code.company.com/myproject/myrepo ; sha1 = b1f0ab0e47b56c8ebd4671faf54445781d56128e ; branches = [mybranch]
Feb 13, 2026 3:13:26 PM FINEST hudson.plugins.git.GitStatus
Comparing notified uri ssh://git@code.company.com/myproject/myrepo against repository uri ssh://git@code.company.com/myproject/differentrepo.git in project myfolder » bootcamps » bootcamp_examples » feature/my-feature
Feb 13, 2026 3:13:26 PM FINER hudson.plugins.git.GitStatus
No matching repository uri for notified uri ssh://git@code.company.com/myproject/myrepo in project myfolder » bootcamps » bootcamp_examples » feature/my-feature
. . .
Feb 13, 2026 3:13:26 PM FINEST hudson.plugins.git.GitStatus
Comparing notified uri ssh://git@code.company.com/myproject/myrepo against repository uri ssh://git@code.company.com/myproject/myrepo.git in project myfolder » users » myuser » myjob
Feb 13, 2026 3:13:26 PM FINER hudson.plugins.git.GitStatus
Repository uri ssh://git@code.company.com/myproject/myrepo.git matches notified uri ssh://git@code.company.com/myproject/myrepo in project myfolder » users » myuser » myjob
Feb 13, 2026 3:13:26 PM FINEST hudson.plugins.git.GitStatus
Comparing modified branches [mybranch] against branch mybranch in project myfolder » users » myuser » myjob
Feb 13, 2026 3:13:26 PM FINE hudson.plugins.git.GitStatus
Branch Spec mybranch matches modified branch mybranch for myfolder » users » myuser » myjob
Feb 13, 2026 3:13:26 PM INFO hudson.plugins.git.GitStatus$JenkinsAbstractProjectListener onNotifyCommit
Scheduling myfolder » users » myuser » myjob to build commit b1f0ab0e47b56c8ebd4671faf54445781d56128e
Feb 13, 2026 3:12:43 PM FINER hudson.plugins.git.GitStatus
Processed notification from 1.2.3.4 ⇒ https://jenkins.company.com/git/notifyCommit for uri = ssh://git@code.company.com/myproject/myrepo ; sha1 = b1f0ab0e47b56c8ebd4671faf54445781d56128e ; branches = [mybranch] in 59 ms
  1. Ignore git notification setting
Feb 13, 2026 3:17:14 PM FINER hudson.plugins.git.GitStatus
Ignoring notified uri ssh://git@code.company.com/myproject/myrepo match in project myfolder » users » myuser » myjob due to ignore notify commit setting
  1. Matching repository but no matching branch
Feb 13, 2026 3:19:06 PM FINEST hudson.plugins.git.GitStatus
Comparing modified branches [nomatchbranch] against branch mybranch in project myfolder » users » myuser » myjob
Feb 13, 2026 3:19:06 PM FINER hudson.plugins.git.GitStatus
No matching branch spec for modified branches [nomatchbranch] in project myfolder » users » myuser » myjob

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

@MarkRx MarkRx requested a review from a team as a code owner February 13, 2026 20:27
@MarkEWaite MarkEWaite added the rfe Improvement or new feature label Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rfe Improvement or new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants